package com.supreme.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class CompleteOrder {

    private String orderCode;

    private String orderTypeStr;

    private String orderCreatedAt;

    @JsonProperty(defaultValue = "sale_num")
    private String saleNum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH时mm分ss秒", timezone = "GMT+8")
    private LocalDateTime updatedAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH时", timezone = "GMT+8")
    private Date completeDate;
}
